<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发现精彩 - 广告推荐</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #165DFF;
            --primary-light: #E8F3FF;
            --secondary: #6B7280;
            --light: #F9FAFB;
            --dark: #1F2937;
            --success: #36D399;
            --danger: #F87171;
            --border: #E5E7EB;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            padding-top: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1280px;
        }
        
        .page-title {
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        
        .section-title {
            font-weight: 600;
            margin: 2rem 0 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary-light);
            color: var(--dark);
        }
        
        .section-title i {
            color: var(--primary);
            margin-right: 8px;
        }
        
        /* 广告卡片基础样式 */
        .ad-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        .ad-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }
        
        .ad-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: 500;
            z-index: 10;
        }
        
        .ad-author {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .ad-time {
            font-size: 0.75rem;
            color: var(--secondary);
        }
        
        .ad-content {
            padding: 16px;
        }
        
        .ad-title {
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark);
            line-height: 1.4;
        }
        
        .ad-description {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 12px;
            line-height: 1.6;
        }
        
        .ad-stats {
            display: flex;
            gap: 1.5rem;
            font-size: 0.8rem;
            color: var(--secondary);
            margin-bottom: 12px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .ad-actions {
            display: flex;
            justify-content: space-between;
            padding: 8px 16px;
            border-top: 1px solid var(--border);
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 0.85rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .action-btn:hover {
            background-color: var(--light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 不同图片布局样式 */
        .ad-images-single {
            width: 100%;
            height: 200px;
            overflow: hidden;
        }
        
        .ad-images-single img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .ad-card:hover .ad-images-single img {
            transform: scale(1.03);
        }
        
        .ad-images-multiple {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
            height: 200px;
        }
        
        .ad-images-multiple img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .ad-images-three {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 4px;
            height: 200px;
        }
        
        .ad-images-three img:first-child {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
        }
        
        .ad-images-three img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .ad-images-four {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 4px;
            height: 200px;
        }
        
        .ad-images-four img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .ad-no-image {
            padding: 20px 16px;
            background-color: var(--primary-light);
            border-radius: 6px;
            margin-bottom: 12px;
        }
        
        /* 网格布局 */
        .ads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        /* 大图布局 */
        .ad-large {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        
        @media (max-width: 768px) {
            .ad-large {
                grid-template-columns: 1fr;
            }
            
            .ad-images-single,
            .ad-images-multiple,
            .ad-images-three,
            .ad-images-four {
                height: 160px;
            }
            
            .ad-stats {
                gap: 1rem;
            }
        }
        
        /* 特色广告样式 */
        .featured-ad {
            border: 2px solid var(--primary);
        }
        
        .featured-badge {
            background-color: var(--primary);
        }
        
        /* 轮播广告样式 */
        .carousel-ad {
            height: 380px;
        }
        
        .carousel-ad .carousel-item {
            height: 100%;
        }
        
        .carousel-ad .carousel-caption {
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            text-align: left;
        }
        
        .carousel-ad .ad-title {
            color: white;
            margin-bottom: 8px;
        }
        
        .carousel-ad .ad-description {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 12px;
        }
        
        @media (max-width: 768px) {
            .carousel-ad {
                height: 280px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="page-title">推荐内容</h1>
        
        <!-- 轮播广告 -->
        <div class="section-title">
            <i class="fas fa-star"></i> 精选推广
        </div>
        <div id="carouselAds" class="carousel slide carousel-ad ad-card mb-4">
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <img src="https://picsum.photos/1200/400?random=10" class="d-block w-100 h-100 object-cover" alt="夏季促销活动">
                    <div class="carousel-caption d-none d-md-block">
                        <div class="ad-badge">推广</div>
                        <div class="ad-author mb-2">
                            <img src="https://picsum.photos/100/100?random=201" alt="品牌官方账号" class="author-avatar">
                            <div>
                                <div class="author-name text-white">夏日服饰官方旗舰店</div>
                                <div class="ad-time">2小时前</div>
                            </div>
                        </div>
                        <h3 class="ad-title">夏季新品大促，全场5折起，满300减50</h3>
                        <p class="ad-description">夏季新款连衣裙、T恤、短裤全面上市，限时优惠，前100名下单送精美礼品，点击了解详情。</p>
                        <div class="ad-stats">
                            <div class="stat-item"><i class="far fa-eye"></i> 12.5k</div>
                            <div class="stat-item"><i class="far fa-comment"></i> 342</div>
                            <div class="stat-item"><i class="far fa-heart"></i> 2.1k</div>
                        </div>
                    </div>
                </div>
                <div class="carousel-item">
                    <img src="https://picsum.photos/1200/400?random=11" class="d-block w-100 h-100 object-cover" alt="旅游套餐优惠">
                    <div class="carousel-caption d-none d-md-block">
                        <div class="ad-badge">推广</div>
                        <div class="ad-author mb-2">
                            <img src="https://picsum.photos/100/100?random=202" alt="旅行社账号" class="author-avatar">
                            <div>
                                <div class="author-name text-white">环球旅行社</div>
                                <div class="ad-time">1天前</div>
                            </div>
                        </div>
                        <h3 class="ad-title">巴厘岛5日游特惠，含机票酒店仅需4999元</h3>
                        <p class="ad-description">限时抢购巴厘岛精品游，包含往返机票、四星酒店、景点门票，赠送SPA体验，名额有限。</p>
                        <div class="ad-stats">
                            <div class="stat-item"><i class="far fa-eye"></i> 8.7k</div>
                            <div class="stat-item"><i class="far fa-comment"></i> 215</div>
                            <div class="stat-item"><i class="far fa-heart"></i> 1.5k</div>
                        </div>
                    </div>
                </div>
            </div>
            <button class="carousel-control-prev" type="button" data-bs-target="#carouselAds" data-bs-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="visually-hidden">上一个</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#carouselAds" data-bs-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="visually-hidden">下一个</span>
            </button>
        </div>
        
        <!-- 大图布局广告 -->
        <div class="section-title">
            <i class="fas fa-th-large"></i> 热门推荐
        </div>
        <div class="ad-large">
            <!-- 左侧广告 - 单图 -->
            <div class="ad-card featured-ad">
                <div class="ad-badge featured-badge">热门推广</div>
                <div class="ad-author">
                    <img src="https://picsum.photos/100/100?random=203" alt="电子产品品牌" class="author-avatar">
                    <div>
                        <div class="author-name">科技数码旗舰店</div>
                        <div class="ad-time">3天前</div>
                    </div>
                </div>
                <div class="ad-images-single">
                    <img src="https://picsum.photos/600/400?random=20" alt="新款智能手机" class="w-100">
                </div>
                <div class="ad-content">
                    <h3 class="ad-title">新款智能手机发布，超强续航，超清摄像</h3>
                    <p class="ad-description">全新一代智能手机正式发售，搭载最新处理器，5000mAh大容量电池，1亿像素主摄，首发价3999元起。前500名购买赠送无线充电器。</p>
                    <div class="ad-stats">
                        <div class="stat-item"><i class="far fa-eye"></i> 25.3k</div>
                        <div class="stat-item"><i class="far fa-comment"></i> 876</div>
                        <div class="stat-item"><i class="far fa-bookmark"></i> 3.2k</div>
                    </div>
                </div>
                <div class="ad-actions">
                    <button class="action-btn like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i> 评论
                    </button>
                    <button class="action-btn share-btn">
                        <i class="fas fa-share-alt"></i> 分享
                    </button>
                    <button class="action-btn save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
            
            <!-- 右侧广告 - 多图 -->
            <div class="ad-card">
                <div class="ad-badge">推广</div>
                <div class="ad-author">
                    <img src="https://picsum.photos/100/100?random=204" alt="美食品牌" class="author-avatar">
                    <div>
                        <div class="author-name">味蕾盛宴餐厅</div>
                        <div class="ad-time">1周前</div>
                    </div>
                </div>
                <div class="ad-images-three">
                    <img src="https://picsum.photos/300/600?random=31" alt="餐厅环境">
                    <img src="https://picsum.photos/300/300?random=32" alt="招牌菜1">
                    <img src="https://picsum.photos/300/300?random=33" alt="招牌菜2">
                </div>
                <div class="ad-content">
                    <h3 class="ad-title">新张开业，全场8折，特色海鲜盛宴等你来尝</h3>
                    <p class="ad-description">位于市中心的新派海鲜餐厅，每日空运新鲜海鲜，厨师精心烹制，环境优雅，适合朋友聚会和家庭聚餐。</p>
                    <div class="ad-stats">
                        <div class="stat-item"><i class="far fa-eye"></i> 18.7k</div>
                        <div class="stat-item"><i class="far fa-comment"></i> 452</div>
                        <div class="stat-item"><i class="far fa-bookmark"></i> 1.8k</div>
                    </div>
                </div>
                <div class="ad-actions">
                    <button class="action-btn like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i> 评论
                    </button>
                    <button class="action-btn share-btn">
                        <i class="fas fa-share-alt"></i> 分享
                    </button>
                    <button class="action-btn save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 网格布局广告 -->
        <div class="section-title">
            <i class="fas fa-th"></i> 更多推荐
        </div>
        <div class="ads-grid">
            <!-- 广告1 - 两张图片 -->
            <div class="ad-card">
                <div class="ad-badge">推广</div>
                <div class="ad-author">
                    <img src="https://picsum.photos/100/100?random=205" alt="运动品牌" class="author-avatar">
                    <div>
                        <div class="author-name">运动装备专营店</div>
                        <div class="ad-time">2天前</div>
                    </div>
                </div>
                <div class="ad-images-multiple">
                    <img src="https://picsum.photos/300/300?random=41" alt="运动鞋">
                    <img src="https://picsum.photos/300/300?random=42" alt="运动服">
                </div>
                <div class="ad-content">
                    <h3 class="ad-title">夏季运动套装，透气舒适，买一送一</h3>
                    <p class="ad-description">专业运动品牌夏季新品，吸湿排汗面料，穿着舒适，适合各种运动场景。</p>
                    <div class="ad-stats">
                        <div class="stat-item"><i class="far fa-eye"></i> 7.2k</div>
                        <div class="stat-item"><i class="far fa-comment"></i> 156</div>
                        <div class="stat-item"><i class="far fa-bookmark"></i> 890</div>
                    </div>
                </div>
                <div class="ad-actions">
                    <button class="action-btn like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i> 评论
                    </button>
                    <button class="action-btn save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
            
            <!-- 广告2 - 无图片 -->
            <div class="ad-card">
                <div class="ad-badge">推广</div>
                <div class="ad-author">
                    <img src="https://picsum.photos/100/100?random=206" alt="教育机构" class="author-avatar">
                    <div>
                        <div class="author-name">编程学习学院</div>
                        <div class="ad-time">5天前</div>
                    </div>
                </div>
                <div class="ad-content">
                    <div class="ad-no-image">
                        <div class="text-center text-primary">
                            <i class="fas fa-laptop-code fa-3x mb-2"></i>
                            <p>编程课程限时优惠</p>
                        </div>
                    </div>
                    <h3 class="ad-title">Python零基础到精通，限时特价299元</h3>
                    <p class="ad-description">适合零基础入门的Python编程课程，包含100+课时，50+实战项目，学习完成推荐就业。现在报名赠送学习大礼包。</p>
                    <div class="ad-stats">
                        <div class="stat-item"><i class="far fa-eye"></i> 9.5k</div>
                        <div class="stat-item"><i class="far fa-comment"></i> 218</div>
                        <div class="stat-item"><i class="far fa-bookmark"></i> 1.2k</div>
                    </div>
                </div>
                <div class="ad-actions">
                    <button class="action-btn like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i> 评论
                    </button>
                    <button class="action-btn save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
            
            <!-- 广告3 - 四张图片 -->
            <div class="ad-card">
                <div class="ad-badge">推广</div>
                <div class="ad-author">
                    <img src="https://picsum.photos/100/100?random=207" alt="家居品牌" class="author-avatar">
                    <div>
                        <div class="author-name">温馨家居生活馆</div>
                        <div class="ad-time">4天前</div>
                    </div>
                </div>
                <div class="ad-images-four">
                    <img src="https://picsum.photos/300/300?random=51" alt="家具1">
                    <img src="https://picsum.photos/300/300?random=52" alt="家具2">
                    <img src="https://picsum.photos/300/300?random=53" alt="家具3">
                    <img src="https://picsum.photos/300/300?random=54" alt="家具4">
                </div>
                <div class="ad-content">
                    <h3 class="ad-title">北欧风格家居，打造舒适生活空间</h3>
                    <p class="ad-description">精选北欧风格家具，简约时尚，环保材质，为您打造舒适温馨的居家环境。满2000元免费送货安装。</p>
                    <div class="ad-stats">
                        <div class="stat-item"><i class="far fa-eye"></i> 6.8k</div>
                        <div class="stat-item"><i class="far fa-comment"></i> 132</div>
                        <div class="stat-item"><i class="far fa-bookmark"></i> 756</div>
                    </div>
                </div>
                <div class="ad-actions">
                    <button class="action-btn like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i> 评论
                    </button>
                    <button class="action-btn save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 列表布局广告 -->
        <div class="section-title">
            <i class="fas fa-list"></i> 最新活动
        </div>
        <div class="ads-list">
            <!-- 列表广告1 -->
            <div class="ad-card d-md-flex">
                <div class="ad-badge">推广</div>
                <div class="ad-images-single flex-shrink-0" style="width: 200px; height: 100%;">
                    <img src="https://picsum.photos/400/400?random=61" alt="音乐节海报">
                </div>
                <div class="flex-grow-1">
                    <div class="ad-author">
                        <img src="https://picsum.photos/100/100?random=208" alt="活动主办方" class="author-avatar">
                        <div>
                            <div class="author-name">城市音乐节组委会</div>
                            <div class="ad-time">刚刚</div>
                        </div>
                    </div>
                    <div class="ad-content">
                        <h3 class="ad-title">2023城市夏季音乐节，7月15日盛大开幕</h3>
                        <p class="ad-description">一年一度的城市音乐节即将开始，汇集国内外知名乐队，连续三天精彩演出，早鸟票现已开售，数量有限，欲购从速。</p>
                        <div class="ad-stats">
                            <div class="stat-item"><i class="far fa-eye"></i> 15.3k</div>
                            <div class="stat-item"><i class="far fa-comment"></i> 624</div>
                            <div class="stat-item"><i class="far fa-bookmark"></i> 2.5k</div>
                        </div>
                    </div>
                    <div class="ad-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i> 点赞
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i> 评论
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share-alt"></i> 分享
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i> 收藏
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 列表广告2 -->
            <div class="ad-card d-md-flex">
                <div class="ad-badge">推广</div>
                <div class="ad-images-multiple flex-shrink-0" style="width: 200px; height: 100%;">
                    <img src="https://picsum.photos/200/200?random=71" alt="展览作品1">
                    <img src="https://picsum.photos/200/200?random=72" alt="展览作品2">
                </div>
                <div class="flex-grow-1">
                    <div class="ad-author">
                        <img src="https://picsum.photos/100/100?random=209" alt="艺术馆" class="author-avatar">
                        <div>
                            <div class="author-name">现代艺术展览馆</div>
                            <div class="ad-time">3小时前</div>
                        </div>
                    </div>
                    <div class="ad-content">
                        <h3 class="ad-title">当代艺术展：探索未知，门票买一送一</h3>
                        <p class="ad-description">汇集国内外50位艺术家的100件作品，涵盖绘画、雕塑、装置艺术等多种形式，展览将持续一个月。</p>
                        <div class="ad-stats">
                            <div class="stat-item"><i class="far fa-eye"></i> 4.8k</div>
                            <div class="stat-item"><i class="far fa-comment"></i> 98</div>
                            <div class="stat-item"><i class="far fa-bookmark"></i> 523</div>
                        </div>
                    </div>
                    <div class="ad-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i> 点赞
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i> 评论
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share-alt"></i> 分享
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i> 收藏
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                }
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.save-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('saved');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                }
            });
        });
        
        // 评论按钮功能
        document.querySelectorAll('.comment-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const adCard = this.closest('.ad-card');
                const adTitle = adCard.querySelector('.ad-title').textContent;
                alert(`打开 "${adTitle}" 的评论区`);
            });
        });
        
        // 分享按钮功能
        document.querySelectorAll('.share-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const adCard = this.closest('.ad-card');
                const adTitle = adCard.querySelector('.ad-title').textContent;
                alert(`分享 "${adTitle}" 到社交媒体`);
            });
        });
    </script>
</body>
</html>
    
